package com.ithuaxin.method;

import jdk.swing.interop.SwingInterOpUtils;

public class Test3 {
    public static void main(String[] args) {
        int []arr = {11,22,100,44,55};
        getMax(arr);
        System.out.println(getMax(arr));
    }
    public static int getMax(int arr[]){
        int max = arr[0];
        for (int i=1;i<arr.length;i++){
           if (max<arr[i]){
               max=arr[i];
           }
        }
        return max;
    }
}
